package it.asvp.asvp_portal.data.dao;

import it.asvp.asvp_portal.asvp_util.enumerative.Role;
import it.asvp.asvp_portal.data.entity.member.Member;
import it.asvp.asvp_portal.data.entity.member.MemberAccount;

import java.util.Date;
import java.util.List;



public interface MemberAccountDao {

	public Long persist(MemberAccount transientInstance);
	public void delete(MemberAccount persistentInstance);
	public MemberAccount merge(MemberAccount detachedInstance);
	public MemberAccount findById(java.lang.Long id);
	public MemberAccount findByLogin(String login);
	public MemberAccount findBy(String login,String password);
	public MemberAccount findByMember(Member member);
	public List<MemberAccount> findByEnabled(boolean enabled);
	public List<MemberAccount> findByExpireDate(Date currentDate);
	public List<MemberAccount> findByRole(Role role);
	public List<MemberAccount> findAll();
	
}
